package cn.zyx.sys.mapper;

import cn.zyx.sys.entity.Office;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 机构MAPPER接口
 * @author jeeplus
 * @version 2017-05-16
 */
@Mapper
public interface OfficeMapper {
	
	Office getByCode(String code);

	Office getOfficeById(String id);

	List<Office> findList();

	List<Office> getOfficeList();

	List<Office> getOfficeAllList();

	List<Office> getChildren(String parentId);

	List<Office> findByParentIdsLike(Office office);

	void save(Office office);

	void delete(Office office);
}
